
<div class="sidebar">

    <!-- Sidebar user info -->
    <figure class="user-profile">
        <img alt="John Pixel avatar" src="http://placehold.it/65x65">
        <figcaption>
            <a href="#">John Pixel</a>
            <em>tour manager</em>
            <ul class="user-profile-actions">
                <li><a href="#" title="Personal settings"><span class="awe-cogs"></span></a></li>
                <li><a href="#" title="Logout"><span class="awe-signout"></span></a></li>
                <!--
                <li><a href="#" title="Open mailbox"><span class="awe-envelope-alt"></span></a></li>
                <li><a href="#" title="Hide sidebar"><span class="awe-eye-close"></span></a></li>
                -->
            </ul>
        </figcaption>
    </figure>
    <!-- /Sidebar user info -->

    <!-- Sidebar actions --
    <ul class="sidebar-actionbar">
        <li><a href="#">Mailbox</a></li>
        <li><a href="#">Settings</a></li>
        <li class="active"><a href="#">Log out</a></li>
        <li><a href="#">Hide all</a></li>
    </ul>
    <!-- /Sidebar actions -->

    <!-- Main navigation -->
    <nav class="main-navigation" role="navigation">
        <ul>
            <li<?php echo ($sf_context->getInstance()->getRouting()->getCurrentRouteName() == 'homepage') ? ' class="active"':''?>>
                <a href="<?php echo url_for('@homepage')?>" class="no-submenu"><span class="fam-house"></span>Dashboard</a>
            </li>
            <?php foreach($menu_items as $module => $menu_item):?>
            <li<?php echo ($sf_params->get('module') == $module) ? ' class="active"':''?>>
                <a href="<?php echo url_for('@'.$module)?>"><span class="<?php echo $menu_item['icon']?>"></span><?php echo $menu_item['label']?><span class="badge badge-primary" title="Total <?php echo $menu_item['count'].' '.$menu_item['label']?>"><?php echo $menu_item['count']?></span></a>
                <ul>
                    <li<?php echo ($sf_params->get('module') == $module && $sf_params->get('action') == 'new') ? ' class="active"':''?>><a href="<?php echo url_for('@'.$module.'_new')?>"><span class="fam-add"></span>Add New</a></li>
                    <li<?php echo ($sf_params->get('module') == $module && $sf_params->get('action') == 'index') ? ' class="active"':''?>><a href="<?php echo url_for('@'.$module)?>"><span class="fam-application-view-list"></span>View All</a></li>
                </ul>
            </li>
            <?php endforeach; ?>
        </ul>
    </nav>
    <!-- /Main navigation -->

    <!-- Sidebar box: Dark --
    <section class="sidebar-box sidebar-dark">
        <h2>Dark sidebar box</h2>
        <p>Lorem ipsum dolor sit amet, consectetur <a href="#">adipiscing</a> elit. Maecenas feugiat euismod lorem ut vulputate. Vivamus sodales, elit ac mollis iaculis, dui elit cursus tortor, sit amet ultrices odio sem eget massa.</p>
        <p class="separator">Vivamus sodales, elit ac mollis iaculis, dui elit cursus tortor, sit amet ultrices odio sem eget massa.</p>
        <p class="separator">Phasellus aliquam malesuada blandit. Donec adipiscing sem erat.</p>
        <a href="#" class="btn btn-mini btn-alt btn-primary">Read more &rarr;</a>
        <a href="#" class="thumbnail"><img src="img/sample_content/sample-image-250x150.png" alt="Sample Image"></a>
    </section>
    <!-- /Sidebar box: Dark -->

</div>